import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import shopList from './modules/shopList'
import category from './modules/category'
import onecategory from './category'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    hasLogin: 0,
    namespaced: true,
    token: ''
  },
  mutations: {
    setToken (state, token) {
      state.token = token
    }
  },
  modules: {
    category,
    user,
    shopList,
    onecategory
  }
})
export default store
